package com.wswy.wyjk.model.vo

import com.wswy.wyjk.AppContext
import com.wswy.wyjk.R
import com.wswy.wyjk.model.LicenseType
import com.wswy.wyjk.model.SubjectType

/**
 * 考试规则
 */
class ExamRegularConfig(

    /**
     * 考证车辆
     */
    val carType: LicenseType,

    /**
     * 考试科目
     */
    val subjectType: SubjectType,

    /**
     * 考试时间 分钟
     */
    val examTime: Long,

    /**
     * 合格分数
     */
    val qualifiedPoint: Int,

    /**
     * 判断题 得分
     */
    val judgePoint: Int = 1,

    /**
     * 选择题得分
     */
    val radioPoint: Int = 1,

    /**
     * 多选题得分
     */
    val multiplePoint: Int = 1,

    /**
     * 计分规则描述
     */
    val pointDesc: String = if (radioPoint == multiplePoint) AppContext.getContext().getString(
        R.string.exam_regular_hint1,
        examTime,
        radioPoint,
        qualifiedPoint
    ) else AppContext.getContext().getString(R.string.exam_regular_hint2, examTime, radioPoint,multiplePoint,qualifiedPoint)

)